
//
//  Date+Extensions.swift
//  VVbo
//
//  Created by Mr.Run on 2017/9/13.
//  Copyright © 2017年 Mr.Run. All rights reserved.
//

import Foundation

private let dateFormatter = DateFormatter()

extension Date {
    
    static func vv_dateString(delta: TimeInterval) -> String {
        
        let date = Date(timeIntervalSinceNow: delta)
        
        dateFormatter.dateFormat = "yyyy-MM-dd HH:mm:ss"
        return dateFormatter.string(from: date)
    }
    
}
